version 1.0

task wordCount {
    input {
        File file
    }
    command {
        wc ${file}
        sleep 3600
    }
    runtime {
        docker: "ubuntu:22.04"
        cpu: "1"
        memory: "2 GB"
        disk: "20 GB"
    }
    output {
        String outStr = read_string(stdout())
    }
}

workflow wc_wf {
    input {
        File inputfile
    }
    call wordCount {
        input:
            file = inputfile
    }
    output {
        String out = wordCount.outStr 
    }
}